//
//  PlaceLeft.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/5/22.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class PlaceLeft: PlacePosition {
    override func exchangePlace(btn:CustomBtn) {
        btn .layoutIfNeeded()
        btn.nameLabel.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.right.equalTo(btn.snp.centerX).offset(-5)
        }
        btn.photoImageView.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
            make.left.equalTo(btn.snp.centerX).offset(5)
        }
    }
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

}
